﻿@model Article
@{
    Layout = "~/Views/Shared/LS/_Layout.cshtml";
    ViewBag.Nav = Model.Catalog.Key;
    var catalog = Model.Catalog;
}

<h3 class="title">@Model.Catalog.Name</h3>
<div class="boxDetail">
    <h1>@Html.Raw(Model.Title)</h1>
    <div class="date">@StringHelper.FormatDate(Model.PublishTime)</div>
    <div class="html">
        @if (!string.IsNullOrEmpty(Model.TitleImageUrl))
        {
            <img src="@Model.TitleImageUrl" style="margin:0 auto;max-width:900px;display:block" />
        }
        @if (Model.ArticleTexts.Count > 0)
        {
            @Html.Raw(Model.ArticleTexts[0].Text)
        }
        </p><div class="clear"></div>
    </div>
</div>

